{include file="$tpl_dir./errors.tpl"}

{if isset($confirmation)}
<form action="{$link->getPageLink('register.php', true)}" method="post" id="account-creation_form" class="std">
	<fieldset class="account_creation">
		<h3>{l s='Validate your account information'}</h3>
		<p class="required text">
			<label for="phone_mobile">{l s='Mobile phone'}</label>
			<input type="text" class="text" id="phone_mobile" name="phone_mobile" value="{if isset($smarty.post.phone_mobile)}{$smarty.post.phone_mobile}{/if}" />
			<sup>*</sup><input type="button" value="{l s='Get mobile phone code'}" />
		</p>

		<p class="required text">
			<label for="code">{l s='Mobile phone code'}</label>
			<input type="text" class="text" id="code" name="code" value="" />
			<sup>*</sup>
		</p>
	</fieldset>
	<p class="cart_navigation required submit">
		<input type="submit" name="validatePhoneMobile" id="validatePhoneMobile" value="{l s='Submit'}" class="exclusive" />
		<span><sup>*</sup>{l s='Required field'}</span>
	</p>
</form>
{else}
<form action="{$link->getPageLink('register.php', true)}" method="post" id="account-creation_form" class="std">
	<fieldset class="account_creation">
		<h3>{l s='Your personal information'}</h3>
		<p class="required text">
			<label for="user_name">{l s='User name'}</label>
			<input type="text" class="text" id="user_name" name="user_name" value="{if isset($smarty.post.user_name)}{$smarty.post.user_name}{/if}" />
			<sup>*</sup>
		</p>
		<p class="required text">
			<label for="passwd">{l s='Password'}</label>
			<span><input type="password" id="passwd" name="passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.passwd|escape:'htmlall':'UTF-8'|stripslashes}{/if}" /></span>
			<sup>*</sup>
		</p>
		<p class="required text">
			<label for="confirm_passwd">{l s='Confirm password'}</label>
			<span><input type="password" id="confirm_passwd" name="confirm_passwd" value="{if isset($smarty.post.passwd)}{$smarty.post.confirm_passwd|escape:'htmlall':'UTF-8'|stripslashes}{/if}"  /></span>
			<sup>*</sup>
		</p>
	</fieldset>
	<p class="cart_navigation required submit">
		<input type="submit" name="submitAccount" id="submitAccount" value="{l s='Register'}" class="exclusive" />
		<span><sup>*</sup>{l s='Required field'}</span>
	</p>
	
</form>
{/if}
